package com.example.camerademo;

import android.app.Activity;
import android.os.Bundle;
import android.view.View;
import android.widget.Button;
import android.widget.TextView;

import androidx.annotation.Nullable;

/**
 * author: Liulei
 * created on: 2021/3/31 17:35
 * description: 计算器
 */
public class CalculatorActivity extends Activity {

    private TextView text;

    private Button C;
    private Button delete;
    private Button equal;

    private String textValue;

    private String str = "";


    private View.OnClickListener listener = new View.OnClickListener() {
        @Override
        public void onClick(View v) {
            switch (v.getId()) {
                case R.id.C:

                    break;
                case R.id.delete:

                    break;
                case R.id.equal:

                    break;
                default:

                    break;
            }
        }
    };


    @Override
    protected void onCreate(@Nullable Bundle savedInstanceState) {
        super.onCreate(savedInstanceState);
        setContentView(R.layout.activity_table_layout_demo);

        C = findViewById(R.id.C);
        delete = findViewById(R.id.delete);
        equal = findViewById(R.id.equal);

        C.setOnClickListener(listener);
        delete.setOnClickListener(listener);
        equal.setOnClickListener(listener);
    }
}
